/* import Mock from "mockjs"

const markdownText = `<h1>测试内容</h1><blockquote>
<p>你好，世界</p>
</blockquote>
<p><code>java</code></p>`

// 待审核文章标题列表
let articleList = [
    { id: "001", title: "1这是一篇测试文章" },
    { id: "002", title: "2这是一篇测试文章" },
    { id: "003", title: "3这是一篇测试文章" },
    { id: "004", title: "4这是一篇测试文章" },
    { id: "005", title: "5这是一篇测试文章" },
    { id: "006", title: "6这是一篇测试文章" },
    { id: "007", title: "7这是一篇测试文章" },
    { id: "008", title: "8这是一篇测试文章" },
    { id: "009", title: "9这是一篇测试文章" },
    { id: "0010", title: "10这是一篇测试文章" },
    { id: "0011", title: "11这是一篇测试文章" },
    { id: "0013", title: "12这是一篇测试文章" },
    { id: "0014", title: "13这是一篇测试文章" },
    { id: "0015", title: "14这是一篇测试文章" },
    { id: "0016", title: "15这是一篇测试文章" },
    { id: "0017", title: "16这是一篇测试文章" },
];


// 模拟后端将用户成为管理员接口
Mock.mock('/admin/articleManage/getAuditArticle', 'post', req => {
    const { id } = JSON.parse(req.body);
    console.log("文章id:", id);
    return {
        code: 200,
        data: {
            article: markdownText
        },
        msg: '审核文章'
    }
})


// 返回待审核文章标题列表
Mock.mock('/admin/articleManage/getAuditList', 'post', req => {
    const { pageNum } = JSON.parse(req.body);
    const result = articleList.slice((pageNum - 1) * 11, pageNum * 11);
    return {
        code: 200,
        data: {
            articleList: result,
            pageInfo: {
                totalPage: Math.ceil(articleList.length / 11),
            }
        },
        msg: "待审核文章标题列表"
    }
})

// 审核通过或者不通过
Mock.mock(/\/admin\/articleManage\/passAudit|noPassAudit/, 'post', req => {
    const { id } = JSON.parse(req.body);
    articleList = articleList.filter(article => article.id != id);
    return {
        code: 200,
        data: {},
        msg: "处理完成"
    }
})


export default {
} */